from django.db import models

class Team(models.Model):
    number = models.PositiveIntegerField(unique=True)
    name   = models.CharField(max_length=40)

    def __unicode__(self):
        return self.name


class Runner(models.Model):
    team  = models.ForeignKey(Team)
    name  = models.CharField(max_length=100)
    pace  = models.TimeField()

    def __unicode__(self):
        return self.name

